﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Runtime.Serialization;

namespace Boiling.Common
{
    public class b_Friendsdata : DataSet
    {
        public const string b_Friends_Table = "b_Friends";
        public const string Friends_ID_Field = "Friends_ID";
        public const string Host_User_ID_Field = "Host_User_ID";
        public const string Guest_User_Field = "Guest_User_ID";
        public const string Friends_Deg_Field = "Friends_Deg";
        public const string Request_Field = "Request";
        //Request 域的含义为，如果为0，则表示由Host_User向Guest_User发出邀请，但Guest_User尚未同意
        //如果为1，则表示由Guest_User向Host_User发出邀请，但Host_User尚未同意
        //如果为2，则表示这段朋友关系已经确认
       


        public b_Friendsdata(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
        public b_Friendsdata()
        {
            Buildb_FriendsdataTables();
        }
        private void Buildb_FriendsdataTables()
        {
            DataTable table = new DataTable(b_Friends_Table);
            DataColumnCollection columns = table.Columns;
            columns.Add(Friends_ID_Field, typeof(System.Int32));
            columns.Add(Host_User_ID_Field, typeof(System.String));
            columns.Add(Guest_User_Field, typeof(System.String));
            columns.Add(Friends_Deg_Field, typeof(System.Int32 ));
            columns.Add(Request_Field, typeof(System.Int32 ));
            
            this.Tables.Add(table);
        }




    }
}